package com.aaa.wash.service;

import com.aaa.common.entity.UserBalance;
import com.aaa.common.util.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @ FileName: RemoteUserBalanceService
 * @ Description:
 * @ Author:  STB
 * @ CreateTime: 2025/10/15 0015 9:41
 * @ Version: 1.0.0
 */
@FeignClient(name = "VipService",contextId = "RemoteUserBalanceService")
public interface RemoteUserBalanceService {
    @GetMapping("/userBalance/selectMoneyByUserIdAndStoreId")
    Result selectMoneyByUserIdAndStoreId(@RequestParam("userId") Integer userId,
                                       @RequestParam("storeId") Integer storeId);

    @PostMapping("/userBalance/add")
    Result add(@RequestBody UserBalance userBalance);
}
